<template>
	<view class="page">
		<view class="list">
			<view class="item" @click="go('/subpages/set/safe')">
				<view class="label">账号安全</view>
				<u-icon name="arrow-right" class="arrow-right" :size="14" color="#C6C6C6"></u-icon>
			</view>
			<view class="item" @click="go('/subpages/set/bankInfo')">
				<view class="label">收款信息</view>
				<u-icon name="arrow-right" class="arrow-right" :size="14" color="#C6C6C6"></u-icon>
			</view>
			<view class="item" @click="go('/subpages/set/userInfo')">
				<view class="label">个人信息</view>
				<u-icon name="arrow-right" class="arrow-right" :size="14" color="#C6C6C6"></u-icon>
			</view>
			
			<view class="logout" @click="logout">
				退出登录
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			go(url){
				uni.navigateTo({
					url:url
				})
			},
			logout(){
				getApp().clearToken()
				uni.reLaunch({
					url:'/subpages/login/login'
				})				
			},
		}
	}
</script>

<style lang="scss" scoped>
	.page{
		height: 100vh;
		overflow: hidden;
		
		.list{
			padding: 24rpx;
			
			.item{
				background: #fff;
				height: 92rpx;
				box-sizing: border-box;
				padding: 28rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-bottom: 20rpx;
				border-radius: 20rpx;
				
				.label{
					font-size: 28rpx;
					color: #333333;
				}
			}
		}
		
		.logout{
			margin: 176rpx auto;
			height: 92rpx;
			width: 702rpx;
			border-radius: 100rpx;
			background: #FF5866;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 28rpx;
			color: #FFFFFF;
		}
	}
</style>
